package com.shaw.workrecord.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("record")
public class Record {
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;
    @TableField("remark")
    private String remark;
    @TableField("type")
    private Integer type;
    @TableField("group_id")
    private Long groupId;
    @TableField("amount")
    private Float amount;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;
}
